package com.news.views;

import com.news.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.RelativeLayout;

public class NewsDetailView extends RelativeLayout {
	
	private RelativeLayout body;
	private RelativeLayout header;
	
	private ImageButton rightButton;
	private ImageButton leftButton;

	public NewsDetailView(Context context) {
		super(context);
		body = new RelativeLayout(context);
		header = new RelativeLayout(context);
		init(context);
	}

	private void init(Context context) {
		LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		ViewGroup headerInflated = (ViewGroup) inflater.inflate(R.layout.header_news, null);
		ViewGroup bodyInflated = (ViewGroup) inflater.inflate(R.layout.body_news, null);
		body.addView(bodyInflated);
		header.addView(headerInflated);
	}
	
	

}
